package com.e3.basdoc.cust.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.e3.core.base.SuperOCEntity;

@Entity
@Table(name = "T_CUST_ACCOUNT")
public class CustAccountEntity extends SuperOCEntity {

	private static final long serialVersionUID = -357119895570217749L;

	private CustEntity customer;

	private Long bankId;

	private String accountNo;

	private int accountType;

	private boolean accountIsDefault;

	private String remark;

	@ManyToOne
    @JoinColumn(name = "CUSTOMER_ID")
	public CustEntity getCustomer() {
		return customer;
	}

	public void setCustomer(CustEntity customer) {
		this.customer = customer;
	}

	@Column(name = "BANK_ID")
	public Long getBankId() {
		return bankId;
	}

	public void setBankId(Long bankId) {
		this.bankId = bankId;
	}

	@Column(name = "ACCOUNT_NO")
	public String getAccountNo() {
		return this.accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	@Column(name = "ACCOUNT_TYPE")
	public int getAccountType() {
		return this.accountType;
	}

	public void setAccountType(int accountType) {
		this.accountType = accountType;
	}

	@Column(name = "ACCOUNT_IS_DEFAULT")
	public boolean isAccountIsDefault() {
		return accountIsDefault;
	}

	public void setAccountIsDefault(boolean accountIsDefault) {
		this.accountIsDefault = accountIsDefault;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
